/* 头部 */
header{
    position: fixed;
    top: -1px;
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2);
    background: #f2f2f2;
    z-index: 99;
}

.top{
    position: relative;
    display: block;
    height: 10rem;
    overflow: hidden;
}
.topBg{
    height: 10rem;
    display: block;
}
.topBg img{
    display: block;
    width: 100%;
    height: 10rem;
}
.topClose{
    position: absolute;
    width: 10rem;
    height: 10rem;
    text-align: center;
    left: 0;
    top: 50%;
    margin-top: -5rem;
}

.header-search{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8.4rem;
    background: #f2f2f2;
    color: #666;
}
.header-search-left,.header-search-right{
    display: block;
    width: 6rem;
    margin: 0 2rem;
}
.header-search-left img{
    display: block;
    width: 80%;
    margin: 0 auto 2px;
}
.header-search-middle{
    flex: 1;
    
    display: -webkit-box;
    -webkit-box-flex: 1;
    font-size: 3rem;
    border: 1px solid #e5e5e5;
    color: rgba(0,0,0,.3);
    background-color: #fff;
    text-align: left;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    border-radius: .4rem;
}
.icon-search{
    background-image: url('img/首页搜索.png');
    background-size: 4rem 4rem;
}
.header-search-right img{
    width: 6rem;
    height: 6rem;
}

.header-nav-wrap{
    position: relative;
    overflow: hidden;
}
.nav-display{
    position: absolute;
    right: 0;
    top: 0;
    width: 6.8rem;
    height: 5.5rem;
    line-height: 5.5rem;
    background-color: #f2f2f2;
    box-shadow: -15px 0 15px 0 #f2f2f2;
    text-align: center;
}
.icon-jiantou{
    background-image: url('img/箭头.png');
    transform: rotate(0);
    vertical-align: middle;
}
.open{
    transform: rotate(180deg);
}
.nav-item-list{
    font-size: 2.8rem;
    padding: 0 2.5rem;
    background-color: #f2f2f2;
    transition: max-height .3s ease-in-out;
    display: none;
}
.nav-item-list .title{
    padding-top: 2.5rem;
}
.nav-item-list .btn-wrap{
    display: flex;
    margin-top: 3.4rem;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.nav-item-list .btn-wrap span{
    box-sizing: border-box;
    float: left;
    text-align: center;
    font-size: 2.5rem;
    width: 15.2rem;
    height: 5.6rem;
    line-height: 5.6rem;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    margin-bottom: 2.4rem;
}
.nav-item-list .btn-wrap span:not(:nth-child(4)){
    margin-right: 2rem;
}
.nav-item-list .btn-wrap .btn-active{
    background-color: #fde0d5;
    border-color: #ff6700;
    color: #ff6700;
}
.header-nav{
    width: 100%;
    max-width: 87rem;
    font-size: 2.6rem;
    background-color: #f2f2f2;
    overflow-x: auto;
    white-space: nowrap;
    margin: 0 auto;
    text-align: center;
}
.nav-item{
    float: left;
    padding: 0 2.5rem;
}
.header-nav span{
    display: inline-block;
    line-height: 5.5rem;
    border-bottom: 2px solid rgba(237,91,0,0);
}
.header-nav .nav-active{
    color: rgb(237, 91, 0);
    border-color: rgb(237, 91, 0);
}
main{
    position: absolute;
    top: 23.9rem;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 10rem;
}
/* 正文 */
.banner{
    width: 100%;
    height: 36rem;
    background-color: #ccc;
    position: relative;
    overflow: hidden;
}
.banner-wrap{
    height: 36rem;
    display: flex;
    position: absolute;
    z-index: 9;
    transition: all 1s;
}
.banner-item{
    float: left;
    /* position: relative; */
    display: block;
    height: 36rem;
}
.banner-item img{
    display: block;
    /* width: 100%; */
    /* position: absolute; */
    top: 0;
    left: 0;
    height: 36rem;
}
.dots{
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    transform: .3s;
}
.dot{
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    opacity: .2;
    margin: 0 5px;
    background-color: #000;
}
.dot-active{
    opacity: 1;
    background-color: #fff;
}
.cell{
    width: 72rem;
    height: 15.2rem;
}
.cell img{
    width: 14.4rem;
    float: left;
}
.line{
    width: 100%;
    height: 1.6rem;
    background-color: rgb(245, 245, 245);
}
.new{
    width: 100%;
    height: 50.8rem;
    position: relative;
}
.new img{
    width: 35.8rem;
}
.new img:nth-child(2){
    position: absolute;
    top: 0;
    right: 0;
}
.new img:nth-child(3){
    position: absolute;
    right: 0;
    bottom: 0;
}
.life{
    width: 100%;
}
.life > img{
    width: 100%;
    float: left;
}
.content-content > img{
    width: 72rem;
}
.compon-line{
    width: 100%;
    height: .666667rem;
    background-color: rgb(255, 255, 255);
}
.compon{
    width: 100%;
    padding: 0 1.2rem;
    text-align: center;
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
}
.content-item{
    width: 34rem;
}
.content-item:nth-child(1){
    margin-right: 1.2rem;
}
.compon-img{
    width: 34rem;
    position: relative;
}
.compon-img > img{
    width: 34rem;
}
.tag{
    position: absolute;
    right: 0;
    bottom: 0;
}
.tag img{
    width: 10rem;
}
.compon-info{
    padding: 2rem 2.7rem;
}
.name{
    font-size: 2.8rem;
    color: rgba(0,0,0,.87);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.desc{
    margin-top: .6rem;
    font-size: 2.2rem;
    line-height: 3rem;
    color: rgba(0,0,0,.54);
}
.price{
    padding-left: .5em;
    font-size: 2.8rem;
    color: #ea625b;
    height: 1.5em;
    line-height: 1.5em;
    position: relative;
    display: inline-block;
}
.price::before{
    content: "\A5";
    position: absolute;
    left: 0;
    top: 0;
    font-size: .76em;
}
.price span{
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 2rem;
}
.price .old{
    margin: 0 1rem;
    font-size: 2.2rem;
    text-decoration: line-through;
    color: rgba(0,0,0,.54);
}
.buy-btn{
    width: 20rem;
    background-color: #ea625b;
    color: #fff;
    border-radius: .5rem;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 auto;
    padding: 1.6rem 0;
}
.content-title{
    background: #fff;
    height: 10rem;
    line-height: 10rem;
    font-size: 2.8rem;
    text-align: center;
    color: rgba(0,0,0,.6);
}
.title-line{
    width: 100%;
    height: .2rem;
    background-color: rgb(206, 206, 206);
}
.compon-line2{
    width: 100%;
    height: .4rem;
    background-color: rgb(245, 245, 245);
}
.compon2{
    width: 100%;
    display: flex;
    overflow: hidden;
}
.content-item2{
    width: 36rem;
}
.content-item2:nth-child(1){
    margin-right: .4rem;
}
.content-item2 .compon-img{
    width: 36rem;
    position: relative;
}
.content-item2 .compon-img > img{
    width: 36rem;
    height: 36rem;
}
.compon3 .content-item2{
    width: 100%;
}
.compon3 .compon-img{
    width: 36rem;
    float: left;
}
.compon3 .compon-info{
    width: 36rem;
    height: 36rem;
    padding: 6.4rem 1.2rem 0 3.2rem;
    float: left;
    box-sizing: border-box;
}
.footer-cell{
    width: 72rem;
    display: flex;
    justify-content: space-between;
}
.footer-cell img{
    width: 35.8rem;
    height: 48rem;
}

/* 返回 */
.back{
    position: fixed;
    z-index: 99;
    bottom: 14rem;
    right: 2.6rem;
    display: none;
}
.back a{
    display: block;
}
.back img{
    display: block;
    width: 7rem;
    height: 7rem;
}